import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Graphics;

public class About extends Canvas{
	private Display display;
	private MainMenu mainmenu;
	public About(MainMenu mainmenu, Display display){
		this.mainmenu = mainmenu;
		this.display = display;
		setFullScreenMode(true);
	}
	public void paint(Graphics g){
		if(Option.language == true){
			g.setColor(255, 255, 255);
			g.fillRect(0, 0, 128, 160);
			g.setColor(0, 0, 0);
			g.drawString("Game Cau Ca", 30, 10, 0);
			g.drawString("Phien ban: 0.0.2", 5, 25, 0);
			g.drawString("Nha phat trien:", 5, 40, 0);
			g.drawString("One Person Mobile Game", 7, 55, 0);
			g.drawString("Ban quyen:", 5, 70, 0);
			g.drawString("One Person Studio", 7, 85, 0);
			g.drawString("Lap trinh vien:", 5, 100, 0);
			g.drawString("Ngo Thanh Danh (Mr.D)", 7, 115, 0);
		}
		else{
			g.setColor(255, 255, 255);
			g.fillRect(0, 0, 128, 160);
			g.setColor(0, 0, 0);
			g.drawString("Game Cau Ca", 30, 10, 0);
			g.drawString("Version: 0.0.2", 5, 25, 0);
			g.drawString("Developed:", 5, 40, 0);
			g.drawString("One Person Mobile Game", 7, 55, 0);
			g.drawString("Copyright:", 5, 70, 0);
			g.drawString("One Person Studio", 7, 85, 0);
			g.drawString("Programer:", 5, 100, 0);
			g.drawString("Ngo Thanh Danh (Mr.D)", 7, 115, 0);
		}
	}
	protected void keyPressed(int code){
		if((code == 53)||(code == -5))
			display.setCurrent(mainmenu);
		repaint();
	}
}